<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page isELIgnored="false" %>
<div style='text-align:center;'>
    <a class='btn btn-info'
       <c:if test="${page.pageNumber==1}">disabled</c:if>
       <c:if test="${page.pageNumber!=1}">href="<c:choose>
    <c:when test="${param.param != null}">
        /${param.url}/${param.param}?pageNum=1
    </c:when>
    <c:otherwise>
        /${param.url}?pageNum=1
    </c:otherwise>
</c:choose>"
    </c:if>>首页
    </a>
    <a class='btn btn-info'
       <c:if test="${page.pageNumber==1}">disabled</c:if>
       <c:if test="${page.pageNumber!=1}">href="<c:choose>
    <c:when test="${param.param != null}">
        /${param.url}/${param.param}?pageNum=${page.pageNumber-1}
    </c:when>
    <c:otherwise>
        /${param.url}?pageNum=1
    </c:otherwise>
</c:choose>"
    </c:if>>上一页
    </a>

    <h3 style='display:inline;'>[${page.pageNumber}/${page.totalPage}]</h3>
    <h3 style='display:inline;'>[${page.totalCount}]</h3>

    <a class='btn btn-info'
       <c:if test="${page.totalPage==0 || page.pageNumber==page.totalPage}">disabled</c:if>
       <c:if test="${page.pageNumber!=page.totalPage}">href="<c:choose>
    <c:when test="${param.param != null}">
        /${param.url}/${param.param}?pageNum=${page.pageNumber+1}
    </c:when>
    <c:otherwise>
        /${param.url}?pageNum=${page.pageNumber+1}
    </c:otherwise>
</c:choose>"
    </c:if>>下一页
    </a>
    <a class='btn btn-info'
       <c:if test="${page.totalPage==0 || page.pageNumber==page.totalPage}">disabled</c:if>
       <c:if test="${page.pageNumber!=page.totalPage}">href="<c:choose>
    <c:when test="${param.param != null}">
        /${param.url}/${param.param}?pageNum=${page.totalPage}
    </c:when>
    <c:otherwise>
        /${param.url}?pageNum=${page.totalPage}
    </c:otherwise>
</c:choose>"
    </c:if>>尾页
    </a>

    <input type='text' id="pageNum" class='form-control' style='display:inline;width:60px;' value='' />
    <a class='btn btn-info' href='javascript:void(0);' onclick='location.href="
    <c:choose>
    <c:when test="${param.param != null}">/${param.url}/${param.param}?pageNum=</c:when>
    <c:otherwise>/${param.url}?pageNum=</c:otherwise>
    </c:choose>"+(document.getElementById("pageNum").value) '>GO</a>
</div>
